package zx.x.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;
import zx.x.modules.sys.dao.ChildrenDao;
import zx.x.modules.sys.entity.ChildrenEntity;
import zx.x.modules.sys.service.ChildrenService;


@Service("childrenService")
public class ChildrenServiceImpl extends ServiceImpl<ChildrenDao, ChildrenEntity> implements ChildrenService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ChildrenEntity> page = this.page(
                new Query<ChildrenEntity>().getPage(params),
                new QueryWrapper<ChildrenEntity>()
        );

        return new PageUtils(page);
    }

}